package com.jjpro.requestservice;

import com.jjpro.entity.version.MessageReq;
import com.jjpro.entity.version.VersionReq;
import com.jjpro.utils.AppletResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * Created by Administrator on 2018/4/16.
 */

@FeignClient(value = "jjhome")
public interface VersionRequestService {

    /**
     * 版本更新检测
     * @param versionReq
     * @return
     */
    @RequestMapping(value = "/version/get/updating",method = RequestMethod.POST)
    AppletResult updatingVersion(@RequestBody VersionReq versionReq);

    /**
     * 系统提示
     * @param messageReq
     * @return
     */
    @RequestMapping(value = "/version/get/system",method = RequestMethod.POST)
    AppletResult systemPrompt(@RequestBody MessageReq messageReq);
}
